package com.bluemobi.framework.pay.wechat.entity;

/**
 * 统一下单请求对象
 *
 * @author zhangyong
 * @version 1.0
 * @Date 2016-4-22 16:18
 */
public class UnifiedOrderReq {
    private String key;//支付KEY
    private String appid;//必填 公众账号ID String(32)
    private String mch_id;//必填 商户号 String(32)
    private String nonce_str;//必填 随机字符串 String(32)
    private String sign;//必填 签名 String(32)
    private String body;//必填 商品描述 String(128)
    private String out_trade_no;//必填 订单号（系统内部订单编号） String(32)
    private String fee_type="CNY";//必填  货币类型 默认人民币 String(16)
    private int total_fee;//必填 总金额 单位为分
    private String spbill_create_ip;//必填 终端IP String(16)
    private String notify_url;//必填 回掉地址 String(256)
    private String trade_type="JSAPI";//必填 交易类型(JSAPI--公众号支付、NATIVE--原生扫码支付、APP--app支付) String(16)
    private String openid;//选填 用户标识(trade_type=JSAPI，此参数必传) String(128)
    private String detail;//选填 商品详情 String(8192)
    private String attach;//选填 附加数据（下单时间的附加数据,微信支付回掉后会回传）String(127)
    private String device_info;//选填 终端设备号(门店号或收银设备ID) PC网页或公众号内支付请传"WEB String(32)
    private String time_start;//选填 交易起始时间(20160101231510) String(14)
    private String time_expire;//选填 订单结束(失效)时间(20160101231510) String(14) 注意:最短失效时间间隔必须大于5分钟
    private String goods_tag;//选填 商品标记(商品标记，代金券或立减优惠功能的参数) String(32)
    private String product_id;//选填 商品ID(trade_type=NATIVE，此参数必传) String(32)
    private String limit_pay;//选填 指定支付方式(tno_credit--指定不能使用信用卡支付) String(32)

    public String getKey() {
        return key;
    }

    public void setKey(String key) {
        this.key = key;
    }

    public String getAppid() {
        return appid;
    }

    public void setAppid(String appid) {
        this.appid = appid;
    }

    public String getMch_id() {
        return mch_id;
    }

    public void setMch_id(String mch_id) {
        this.mch_id = mch_id;
    }

    public String getNonce_str() {
        return nonce_str;
    }

    public void setNonce_str(String nonce_str) {
        this.nonce_str = nonce_str;
    }

    public String getSign() {
        return sign;
    }

    public void setSign(String sign) {
        this.sign = sign;
    }

    public String getBody() {
        return body;
    }

    public void setBody(String body) {
        this.body = body;
    }

    public String getOut_trade_no() {
        return out_trade_no;
    }

    public void setOut_trade_no(String out_trade_no) {
        this.out_trade_no = out_trade_no;
    }

    public String getFee_type() {
        return fee_type;
    }

    public void setFee_type(String fee_type) {
        this.fee_type = fee_type;
    }

    public int getTotal_fee() {
        return total_fee;
    }

    public void setTotal_fee(int total_fee) {
        this.total_fee = total_fee;
    }

    public String getSpbill_create_ip() {
        return spbill_create_ip;
    }

    public void setSpbill_create_ip(String spbill_create_ip) {
        this.spbill_create_ip = spbill_create_ip;
    }

    public String getNotify_url() {
        return notify_url;
    }

    public void setNotify_url(String notify_url) {
        this.notify_url = notify_url;
    }

    public String getTrade_type() {
        return trade_type;
    }

    public void setTrade_type(String trade_type) {
        this.trade_type = trade_type;
    }

    public String getOpenid() {
        return openid;
    }

    public void setOpenid(String openid) {
        this.openid = openid;
    }

    public String getDetail() {
        return detail;
    }

    public void setDetail(String detail) {
        this.detail = detail;
    }

    public String getAttach() {
        return attach;
    }

    public void setAttach(String attach) {
        this.attach = attach;
    }

    public String getDevice_info() {
        return device_info;
    }

    public void setDevice_info(String device_info) {
        this.device_info = device_info;
    }

    public String getTime_start() {
        return time_start;
    }

    public void setTime_start(String time_start) {
        this.time_start = time_start;
    }

    public String getTime_expire() {
        return time_expire;
    }

    public void setTime_expire(String time_expire) {
        this.time_expire = time_expire;
    }

    public String getGoods_tag() {
        return goods_tag;
    }

    public void setGoods_tag(String goods_tag) {
        this.goods_tag = goods_tag;
    }

    public String getProduct_id() {
        return product_id;
    }

    public void setProduct_id(String product_id) {
        this.product_id = product_id;
    }

    public String getLimit_pay() {
        return limit_pay;
    }

    public void setLimit_pay(String limit_pay) {
        this.limit_pay = limit_pay;
    }
}
